#include <iostream>
#include "utils.h"

using namespace net;
using namespace rapidxml;

namespace net {

void makeBlock(xml_document<> &xml, int count) {

	xml.clear();
	//makeXmlHeader(xml);

	xml_node<>* root = xml.allocate_node(node_element, "root");
	for (int i = 0; i < count; ++i) {
		xml_node<>* node = xml.allocate_node(node_element, "node");
		node->append_attribute(xml.allocate_attribute("attr", "val"));
		root->append_node(node);
	}
	xml.append_node(root);
}

}
